﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.Record
{
    /// <summary>
    /// 物料绑定记录
    /// </summary>
	[Table("MaterialBindRecord")]

    [Display(Name = "_Model.MaterialBindRecord")]
    public class MaterialBindRecord : BasePoco
    {
        [Display(Name = "_Model._MaterialBindRecord._lineCode")]
        [Comment("产线编码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._stationCode")]
        [Comment("工位编码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._orderCode")]
        [Comment("工单编号")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string OrderCode { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._scheduleCode")]
        [Comment("排程编码")]
        public string ScheduleCode { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._snNumber")]
        [Comment("SN编码")]
        public string SnNumber { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialCode")]
        [Comment("组件物料编号")]
        public string AssemblyMaterialCode { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialQty")]
        [Comment("组件物料数量")]
        public string AssemblyMaterialQty { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._assemblySort")]
        [Comment("组装顺序")]
        public string AssemblySort { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._assemblyTime")]
        [Comment("组装时间")]
        public string AssemblyTime { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialName")]
        [Comment("组件物料名称")]
        public string AssemblyMaterialName { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialVersion")]
        [Comment("组件物料版本")]
        public string AssemblyMaterialVersion { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialSn")]
        [Comment("组件物料sn")]
        public string AssemblyMaterialSn { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._materialBatchNo")]
        [Comment("组件物料批次")]
        public string MaterialBatchNo { get; set; }
        [Display(Name = "_Model._MaterialBindRecord._uploadflag")]
        [Comment("上传标志位")]
        public bool? Uploadflag { get; set; }

	}

}
